<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<span id="spanId">Hello Span</span>
		<button onclick="clickMe()">点击</button>
		
		<script type="text/javascript">
			function clickMe(){
				var spanObj = document.getElementById('spanId');
				spanObj.innerText = 'innerText';//输出标签内容，不带样式
				spanObj.innerHTML = 'innerHYML';//输出的标签内容带样式
			}
			var student = {
				name:'zhangsan',
				age:23,
				print:function(){
					console.log('name:'+this.name+', age: ' + this.age);
				}
			}
			console.log(student.name);
			student.print();
		</script>
	</body>
</html>